<!--
  描述：菜单配置表列表页
  @author guoqiao
  @since 2021-05-28 16:23:56
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>菜单配置表列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">
        <a th:lay-href="|${SYS_MCC}/mcc/menu/list.action|" lay-text="菜单管理" th:text="菜单管理">菜单管理</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form"  action="/mcc/menu/list.action">
            <div class="layui-form" th:include="menu/_query :: query "></div>
        </form>

        <div class="layui-card-body">

                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${#authPermit.checkPermit('/mcc/menu/modify/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" onclick="setStatus(2);">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" onclick="setStatus(1);">停用</button>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/mcc/menu/modify/addEdit.action')}">
                            <a th:lay-href="|${SYS_MCC}/mcc/menu/addEditView.action?menuType=1|"
                               class="layui-btn layui-btn-sm layui-btn-primary"
                               lay-text="新增一级菜单" text="新增一级菜单">+新增一级菜单
                            </a>
                        </zmn>
                    </div>
                </div>

        </div>
        <table class="layui-hide" id="zmn-table" lay-filter="zmn-table"></table>
    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        items: [[${items}]],
        keyword: [[${vo.keyword}]],
        menuUrl: [[${vo.menuUrl}]],
        status: [[${vo.status}]],
        sysList: [[${sysList}]],
        sysMcc: [[${SYS_MCC}]],
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        mcc_menu_list: "menu/zmn.menu.list",
        mcc_menu_tree: "menu/zmn.menu.tree",
    }).use(['index', 'mcc_menu_list', 'mcc_menu_tree']);

</script>
</body>
</html>